home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sprite 1984 - 1993
/
Sprite 1984 - 1993.iso
/
src
/
machserver
/
1.098
/
Include
/
dev.h
< prev
next >
Wrap
C/C++ Source or Header
|
1991-04-18
|
2KB
|
64 lines
/*
* dev.h --
*
* Types, constants, and macros exported by the device module.
*
* Copyright 1985, 1988 Regents of the University of California
* Permission to use, copy, modify, and distribute this
* software and its documentation for any purpose and without
* fee is hereby granted, provided that the above copyright
* notice appear in all copies. The University of California
* makes no representations about the suitability of this
* software for any purpose. It is provided "as is" without
* express or implied warranty.
*
*
* $Header: /sprite/src/kernel/dev/RCS/dev.h,v 9.3 91/04/16 17:13:00 jhh Exp $ SPRITE (Berkeley)
*/
#ifndef _DEV
#define _DEV
#include <status.h>
#ifdef KERNEL
#include <devSyslog.h>
#include <user/sysStats.h>
#else
#include <kernel/devSyslog.h>
#include <sysStats.h>
#endif
#ifndef _SPRITETIME
#include <spriteTime.h>
#endif
/*
* The filesystem and the device module cooperate to translate from
* filesystem block numbers to disk addresses. Hence, this simple
* type and the bytes per sector are exported.
*/
typedef struct Dev_DiskAddr {
int cylinder;
int head;
int sector;
} Dev_DiskAddr;
/*
* DEV_BYTES_PER_SECTOR the common size for disk sectors.
*/
#define DEV_BYTES_PER_SECTOR 512
extern Time dev_LastConsoleInput;
extern void Dev_ConsoleReset _ARGS_ ((int toConsole));
extern void Dev_Init _ARGS_((void));
extern void Dev_Config _ARGS_((void));
extern void Dev_GatherDiskStats _ARGS_((void));
extern int Dev_GetDiskStats _ARGS_((Sys_DiskStats *diskStatArr,int numEntries));
extern void Dev_RegisterConsoleCmd _ARGS_((int commandChar,
void (*proc)(ClientData clientData), ClientData clientData));
extern void Dev_InvokeConsoleCmd _ARGS_((int commandChar));
extern int Dev_KbdQueueAttachProc _ARGS_((int character,
void (*proc)(ClientData clientData), ClientData clientData));
#endif /* _DEV */